﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgNetComponents.Interfaces;
using ProgNetComponents.Tools;

namespace ProgNetComponents.Classes
{
    /// <summary>
    /// Base object with Name property
    /// </summary>
    public class BaseNamedObject : BaseCustomObject, INamedObject
    {
        private string _Name;

        /// <summary>
        /// Gets or sets name. Name should be 'code friendly'.
        /// </summary>
        public string Name
        {
            get { return _Name; }
            set { _Name = ConstHelper.GetFriendlyName(value); }
        }
    }
}
